package com.jshan.blog.base.admin.dto;

import com.jshan.blog.valid.UpdateGroupValid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class ChangePwdDto {

    @NotNull(message = "用户 id 不能为空", groups = {UpdateGroupValid.class})
    private Integer id;
    @NotBlank(message = "原密码不能为空", groups = {UpdateGroupValid.class})
    private String oldPwd;
    @NotBlank(message = "新密码不能为空", groups = {UpdateGroupValid.class})
    private String newPwd;
}
